# Maintainer: Bruno Pagani <archange@archlinux.org>
# Contirbutor: Lukas Jirkovsky <l.jirkovsky@gmail.com>

pkgname=klavaro
pkgver=3.14
pkgrel=1
pkgdesc="Free touch typing tutor program"
arch=(loong64 x86_64)
url="https://klavaro.sourceforge.io"
license=(GPL2)
depends=(curl glib2 gtk3 gtkdatabox pango)
makedepends=(cairo intltool)
optdepends=('espeak-ng: voice output')
source=(https://downloads.sourceforge.net/${pkgname}/${pkgname}/${pkgname}-${pkgver}.tar.bz2)
sha256sums=('87187e49d301c510e6964098cdb612126bf030d2a875fd799eadcad3eae56dab')

build() {
  cd ${pkgname}-${pkgver}
  ./configure --prefix=/usr
  make
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
}
